<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>姚益飞的个人博客</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">

    <!-- Bootstrap styles -->
    <link rel="stylesheet" href="./Public/Home/css/bootstrap.min.css">

    <!-- Font-Awesome -->
    <link rel="stylesheet" href="./Public/Home/css/font-awesome/css/font-awesome.min.css">

    <!-- Google Webfonts -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600|PT+Serif:400,400italic' rel='stylesheet' type='text/css'>

    <!-- Styles -->
    <link rel="stylesheet" href="./Public/Home/css/style.css" id="theme-styles">

    <!--[if lt IE 9]>
    <script src="./Public/Home/js/vendor/google/html5-3.6-respond-1.1.0.min.js"></script>
    <![endif]-->

</head>
<body>
<header>
    <div class="widewrapper masthead">
        <div class="container">
            <a href="index.html" id="logo">
                <img src="./Public/Home/img/5.gif" alt="clean Blog" height="150" width="300">
            </a>

            <div id="mobile-nav-toggle" class="pull-right">
                <a href="#" data-toggle="collapse" data-target=".clean-nav .navbar-collapse">
                    <i class="fa fa-bars"></i>
                </a>
            </div>

            <nav class="pull-right clean-nav">
                <div class="collapse navbar-collapse">
                    <ul class="nav nav-pills navbar-nav">

                        <li>
                            <a href="?c=index">首页</a>
                        </li>
                        <li>
                            <a href="?c=Index&a=lists">博文列表</a>
                        </li>
                        <li>
                            <a href="?c=Index&a=about">关于我</a>
                        </li>
                        <li>
                            <a href="?c=Index&a=message">留言</a>
                        </li>
                    </ul>
                </div>
            </nav>

        </div>
    </div>

    <div class="widewrapper subheader">
        <div class="container">
            <div class="clean-breadcrumb">
                <a href="#">文章</a>
            </div>

            <div class="clean-searchbox">
                <form action="?c=index&a=lists" method="post" accept-charset="utf-8">
                    <input class="searchfield" name="title" id="searchbox" type="text" placeholder="Search">
                    <button class="searchbutton" type="submit">
                        <i class="fa fa-search"></i>
                    </button>
                </form>
            </div>
        </div>
    </div>
</header>

<div class="widewrapper main">
    <div class="container">
        <div class="row">

            <div class="col-md-8 blog-main">
                <article class="blog-post">
                    <header>

                        <div class="lead-image">
                            <img src="./Public/Home/img/single-post.jpg" alt="" class="img-responsive">

                        </div>
                    </header>
                    <div class="body">
                        <h1 align="center"><{$article.title}></h1>
                        <div class="meta">
                            <form action="">
                            <i class="fa fa-user"></i><{$article.name}>
                            <i class="fa fa-calendar"></i><{$article.addate|date_format:'%Y-%m-%d %H:%M:%S'}>
                            <i class="fa fa-comments"></i>
                            <span class="data"><a href="#comments">3 Comments</a></span>

                            <a onclick="loadXMLDoc()"  href="javascript:(0);">
                                <i class="fa fa-thumbs-o-up"></i>点赞(<span id="praise"><{$article.praise}></span>)
                            </a>
                            <script>
                                //?c=index&a=praise&id=<{$article.id}>
                                //ajax 点赞功能
                                function loadXMLDoc(){
                                    var XML = null;
                                    if (window.XMLHttpRequest){
                                        //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
                                        XML = new XMLHttpRequest();
                                    } else{
                                        // IE6, IE5 浏览器执行代码
                                        XML = new ActiveXObject("Microsoft.XMLHTTP");
                                    }
                                    //编写回调函数
                                    XML.onreadystatechange = function()
                                    {
                                        var age = document.getElementById("praise").innerHTML;
                                        if(XML.readyState==4 && XML.status==200){
                                            if(XML.responseText == "NO"){
                                                alert("只能点赞一次");
                                            }else{
                                                if(XML.responseText == "OK"){
                                                    document.getElementById("praise").innerHTML = parseInt(age)+1;
                                                }
                                            }
                                            //console.log(XML.responseText);
                                        }
                                    }
                                    XML.open("GET","?c=Index&a=praise&id=<{$article.id}>",true);
                                    XML.send();
                                }
                            </script>
                            <i class="fa fa-eye"></i>浏览(<{$article.read}>)
                            </form>
                            <p>
                                <{$article.content}>
                            </p>
                        </div>
                    </div>

                </article>
                <a href="?c=index&a=content&id=<{$arr.0.id}>">上一篇：<{$arr.0.title}></a>
                <br>
                <a href="?c=index&a=content&id=<{$arr.1.id}>">下一篇：<{$arr.1.title}></a>

                <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more">分享到：</a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">QQ空间</a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">新浪微博</a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博">腾讯微博</a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网">人人网</a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">微信</a></div>
                <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{"bdSize":16}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>

                <aside class="social-icons clearfix">
                    <h3>Share on </h3>
                    <a href="#"><i class="fa fa-facebook"></i></a> <a href="#"><i class="fa fa-twitter"></i></a> <a href="#"><i class="fa fa-google"></i></a>
                </aside>

                <aside class="comments" id="comments">
                    <hr>

                    <h2><i class="fa fa-comments"></i> 6 Comments</h2>

                    <article class="comment">
                        <header class="clearfix">
                            <img src="./Public/Home/img/avatar.png" alt="A Smart Guy" class="avatar">
                            <div class="meta">
                                <h3><a href="#">John Doe</a></h3>
                                <span class="date">
                                        24 August 2015
                                    </span>
                                <span class="separator">
                                        -
                                    </span>

                                <a href="#create-comment" class="reply-link">Reply</a>
                            </div>
                        </header>
                        <div class="body">
                            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere sit perspiciatis debitis, vel ducimus praesentium expedita, assumenda ipsum cum corrupti dolorum modi. Rem ipsam similique sapiente obcaecati tenetur beatae voluptatibus.
                        </div>
                    </article>

                </aside>

                <aside class="create-comment" id="create-comment">
                    <hr>

                    <h2><i class="fa fa-pencil"></i> Add Comment</h2>

                    <form action="#" method="get" accept-charset="utf-8">
                        <div class="row">
                            <div class="col-md-6">
                                <input type="text" name="name" id="comment-name" placeholder="Your Name" class="form-control input-lg">
                            </div>
                            <div class="col-md-6">
                                <input type="email" name="email" id="comment-email" placeholder="Email" class="form-control input-lg">
                            </div>
                        </div>

                        <input type="url" name="name" id="comment-url" placeholder="Website" class="form-control input-lg">

                        <textarea rows="10" name="message" id="comment-body" placeholder="Your Message" class="form-control input-lg"></textarea>

                        <div class="buttons clearfix">
                            <button type="submit" class="btn btn-xlarge btn-clean-one">Submit</button>
                        </div>
                    </form>
                </aside>
            </div>

            <aside class="col-md-4 blog-aside">

                <div class="aside-widget">
                    <header>
                        <h3>文章分类</h3>
                    </header>
                    <div class="body">
                        <ul class="clean-list">
                            <{foreach $categorys as $category}>
                            <li>
                                <a href="?c=Index&a=lists&category_id=<{$category.id}>">
                                    <{str_repeat('--',$category.level*2)}>
                                    <{$category.classname}>
                                </a>(<font color="red"><{$category.records}></font>)
                            </li>
                            <{/foreach}>
                        </ul>
                    </div>
                </div>

                <div class="aside-widget">
                    <header>
                        <h3>归档</h3>
                    </header>
                    <div class="body">
                        <ul class="clean-list">
                            <{foreach $month as $months}>
                            <li>
                                <{$months.months}>
                                (<font color="red"><{$months.records}></font>)
                            </li>
                            <{/foreach}>
                        </ul>
                    </div>
                </div>

                <div class="aside-widget">
                    <header>
                        <h3>Tags</h3>
                    </header>
                    <div class="body clearfix">
                        <ul class="tags">
                            <li><a href="#">HTML5</a></li>
                            <li><a href="#">CSS3</a></li>
                            <li><a href="#">COMPONENTS</a></li>
                            <li><a href="#">TEMPLATE</a></li>
                            <li><a href="#">PLUGIN</a></li>
                            <li><a href="#">BOOTSTRAP</a></li>
                            <li><a href="#">TUTORIAL</a></li>
                            <li><a href="#">UI/UX</a></li>
                        </ul>
                    </div>
                </div>
            </aside>
        </div>
    </div>
</div>

<footer>
    <div class="widewrapper footer">
        <div class="container">
            <div class="row">
                <div class="col-md-4 footer-widget">
                    <h3> <i class="fa fa-user"></i>上善若水</h3>

                    <p>一个人孤独的活着，本是没有意思的事情。但是你活着,也许在前方就会遇见有意思的事，有趣的灵魂。</p>

                </div>

                <div class="col-md-4 footer-widget">
                    <h3> <i class="fa fa-pencil"></i> 友情链接</h3>
                    <ul class="clean-list">
                        <{foreach $links as $link}>
                        <li><a target="_blank" href="<{$link.url}>"><{$link.domain}></a></li>
                        <{/foreach}>
                    </ul>
                </div>

                <div class="col-md-4 footer-widget">
                    <h3> <i class="fa fa-envelope"></i>Contact Me</h3>
                    <p>qq：506717715</p>
                    <p>微信：a506717715</p>
                    <p>交换友链最好是技术类网站哦！</p>
                    <div class="footer-widget-icon">
                        <i class="fa fa-facebook"></i><i class="fa fa-twitter"></i><i class="fa fa-google"></i>
                    </div>
                </div>

            </div>
        </div>
    </div>
    <div class="widewrapper copyright">
        Copyright 2018 More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">姚益飞的个人博客</a> - Collect from
    </div>
</footer>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="./Public/Home/js/bootstrap.min.js"></script>
<script src="./Public/Home/js/modernizr.js"></script>

</body>
</html>